﻿CREATE DATABASE [_DB_NAME_] ON  PRIMARY 
( NAME = N'_DB_NAME_', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\_DB_NAME_.mdf' , SIZE = 102400KB , MAXSIZE = UNLIMITED, FILEGROWTH = 20480KB )
 LOG ON 
( NAME = N'_DB_NAME__log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\_DB_NAME__log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'_DB_NAME_', @new_cmptlevel=90
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [_DB_NAME_].[dbo].[sp_fulltext_database] @action = 'disable'
end
GO
ALTER DATABASE [_DB_NAME_] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [_DB_NAME_] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [_DB_NAME_] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [_DB_NAME_] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [_DB_NAME_] SET ARITHABORT OFF 
GO
ALTER DATABASE [_DB_NAME_] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [_DB_NAME_] SET AUTO_CREATE_STATISTICS ON 
GO
ALTER DATABASE [_DB_NAME_] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [_DB_NAME_] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [_DB_NAME_] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [_DB_NAME_] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [_DB_NAME_] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [_DB_NAME_] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [_DB_NAME_] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [_DB_NAME_] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [_DB_NAME_] SET  ENABLE_BROKER 
GO
ALTER DATABASE [_DB_NAME_] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [_DB_NAME_] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [_DB_NAME_] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [_DB_NAME_] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [_DB_NAME_] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [_DB_NAME_] SET  READ_WRITE 
GO
ALTER DATABASE [_DB_NAME_] SET RECOVERY FULL 
GO
ALTER DATABASE [_DB_NAME_] SET  MULTI_USER 
GO
ALTER DATABASE [_DB_NAME_] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [_DB_NAME_] SET DB_CHAINING OFF 